var tan_news_load = function tan_news_load() {
    $.ajax({
        type:"POST",
        url:"selNewsServlet",
        data: {
            op:"list"
        },
        dataType:"Json",
        success:function (data){				//成功后触发
            if(data!=null){
                $("#news_tannouncement").find("ul").remove();
                // $(".box").childNodes.remove();
                var html = "<ul>"
                $.each(data.tannouncementsList,function (index,object) {
                    console.log()
                    html+="<li><a href='news-view.jsp?id="+object.newsid+"'  target='_blank'  >"+object.newstitle+"</a></li>"
                });
                html += "</ul>"
                $("#news_tannouncement").append(html);

                $("#news_seelist").find("ul").remove();
                // $(".box").childNodes.remove();
                var html = "<ul>"
                $.each(data.newsList,function (index,object) {
                    console.log()
                    html+="<li><a href='news-view.jsp?id="+object.newsid+"'  target='_blank'  >"+object.newstitle+"</a></li>"
                });
                html += "</ul>"
                $("#news_seelist").append(html);
            }else{
                $("#news_tannouncement").find("ul").remove();
                $("#news_seelist").find("ul").remove();
            }
        },
        error:function(jqxhr,textstatus,errorThrown){		//发生错误时触发
            console.log("错误");
        }
    })
}
tan_news_load();